﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Gamev1
{
    public class Key : Item
    {
        public override void collisionWith(Sprite sprite)
        {
            if (sprite is Character)
            {
                Character character = (Character)sprite;
                {
                    character.hasKey = true;
                    canBeRemoved = true;
                }
            }
        }
    }
}
